package worldLogic;

import java.util.Vector;

/**
 * Created by IntelliJ IDEA.
 * User: Mark the intern
 * Date: 10-Jul-2007
 * Time: 3:53:37 PM
 */
public class Ant extends PhysicalObject implements Smells {

    private Vector<Event> memory;
    private ThoughtProcess brain;
    private Integer energy;
    private Counter bearing;
    private Integer stepCount;

    //Locomotion legs;

    private Integer smellRadius;
    private Integer sightRadius;
    private Integer talkRadius;

    private Integer odor;

    public Ant(int id, int odor, Counter bearing, Coordinate location) {
        super(id, location);
        memory = new Vector<Event>();
        brain = new ThoughtProcess(this);
        energy = 100;
        this.bearing = bearing;
        stepCount = 0;
        //legs = new Locomotion(this);

        this.odor = odor;
    }

    public synchronized void queueEvent(Event newEvent) {
        memory.add(newEvent);
        //stepCount = newEvent.getStep();
    }

    public void think()  {
        brain.think();
    }

    public int getOdor() {
        return odor;
    }

    public Integer getEnergy() {
        return energy;
    }

    public Counter getBearing() {
        return bearing;
    }

    public Integer getAntId() {
        return objectId;
    }

    public Integer getStepCount() {
        return stepCount;
    }

    public Integer getSmellRadius() {
        return smellRadius;
    }

    public Integer getSightRadius() {
        return sightRadius;
    }

    public Integer getTalkRadius() {
        return talkRadius;
    }
}
